<template>
  <div class="masen-scheme">
    <banner-first></banner-first>
    <div class="scheme-warp">
      <div class="masen-container">
        <div class="scheme-warp-main">
          <div class="scheme-warp-title">
            产品
          </div>
          <div class="scheme-list">
            <div class="scheme-list-li" v-for="(item,index) in ProductList" :key="index">
              <div class="scheme-list-item">
              <div class="scheme-list-img">
<!--                <img v-lazy="'/imgs/scheme/scheme-case-01.png'" >-->
                <img v-lazy="item.brief" >
              </div>
              <div class="scheme-list-font">
                <h4>{{item.title}}</h4>
                <p>{{item.thumb}}</p>
              </div>
            </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  // import NavHeader from './components/NavHeader'
import BannerFirst from './components/BannerFirst'
import { getProductList } from '../api/product'
export default {
  components: { BannerFirst },
  data() {
    return {
      ProductList: []
    }
  },
  mounted () {
    this.getList();
  },
  methods: {
    getList() {
      getProductList().then((response) => {
        const { result } = response.data
        this.ProductList = result
      })
    }
  }
}
</script>

<style lang="scss">
  @import "../assets/scss/mixin.scss";
  @import "../assets/scss/button";
  .masen-scheme{

    .scheme-warp{
      margin-top: 80px;
      .masen-container{
        .scheme-warp-main{
          .scheme-warp-title{
            text-align: center;
            font-size: 30px;
            color: #333333;
            padding-bottom: 40px;
            &:after{
              content: '';
              margin: 30px auto 0px auto;
              @include borderSet(40px,2px);

            }
          }
          .scheme-list{
            display: flex;
            justify-content: left;
            /*padding-top: 30px;*/
            flex-wrap: wrap;
            .scheme-list-li{
              flex: 1;
              width: 25%;
              max-width: 25%;
              min-width: 25%;
              margin-top: 30px;
              .scheme-list-item{
                cursor: pointer;
                width: 265px;
                height: 422px;
                text-align: center;
                margin-right: 35px;
                box-shadow: 0px 0px 6px #e8e3e3;
                &:last-child{
                  margin-right: 0px;
                }
                .scheme-list-img{
                  img{
                    width: 265px;
                    height: 205px;
                  }
                }
                .scheme-list-font{
                  text-align: center;
                  padding: 30px 15px 70px 15px;
                  h4{
                    color: #525252;
                    font-size: 30px;
                  }
                  p{
                    color: #666666;
                    font-size: 16px;
                    text-align: left;
                    margin-top: 30px;
                  }
                }
                &:hover{
                  background: #134B9F;
                  transition: all 0.5s;
                  h4{
                    color: #FFFFFF;
                  }
                  p{
                    color: #FFFFFF;
                  }
                }
              }
            }

          }
        }
      }
    }
  }

</style>
